var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var userModel = require('../../app/models/userModel');
var config = require('../config');

suite('测试UserModel', function () {
    var user_model;
    setup(function (done) {
        userModel.getByUid(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            user_model = model;
            user_model.getUid();
            user_model.getLastLoginTime();
            user_model.toJSON();
            done();
        });
    });

    suite('getForbidUser', function () {
        test('获取封禁用户', function (done) {
            userModel.getForbidUser(function (err, res) {
                done();
            });
        });
    });
});
